package com.woniu.woniuproject.controller.admin;

import com.github.pagehelper.PageInfo;
import com.woniu.woniuproject.entity.Account_log;
import com.woniu.woniuproject.service.FlowingWaterService;
import com.woniu.woniuproject.utils.ResponseResult;
import com.woniu.woniuproject.vo.Accountwatervo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 功能描述:<br>
 * 〈〉
 *
 * @author 徐威
 * @create 2020/11/18
 * @since 1.0.0
 */
@RestController
@RequestMapping("accountwater")
public class FlowingWaterController {
    @Autowired
    FlowingWaterService flowingWaterService;
    @GetMapping("/queryall")
    public ResponseResult<PageInfo<Account_log>> queryAllBy(Accountwatervo accountwatervo){
    return new ResponseResult<PageInfo<Account_log>>(flowingWaterService.queryAllBy(accountwatervo));
    }
}
